package com.guhus.ec.pojo.seller;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * 商品类
 * @author GUHU
 * @date 2021-9-30 00:08:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    /** 商品ID */
    private Integer id;
    /** 商品分类 */
    private Cate3 category;
    /** 商品名称 */
    private String name;
    /** 商品品牌 */
    private Brand brand;
    /** 子标题 */
    private String subtitle;
    /** 价格 */
    private Double price;
    /** 详细描述 */
    private String description;
    /** 包装列表信息 */
    private String packingList;
    /** 售后服务信息 */
    private String afterSalesService;
    /** 商品颜色 */
    private String color;
    /** 商品图片 */
    private String imgPath;
    /** 扩展属性 */
    private Map<String, Object> extendedAttributes;
    /** 规格(为null表示不选) */
    private List<Specification> specList;

    /** 商品状态(0未申请, 1申请通过, 2未通过, 3已驳回) */
    private Integer status;


    public Product(Integer id, Cate3 category, String name, Brand brand, Double price, String description, String imgPath, Integer status) {
        this.id = id;
        this.category = category;
        this.name = name;
        this.brand = brand;
        this.price = price;
        this.description = description;
        this.imgPath = imgPath;
        this.status = status;
    }

    public Product(Integer id, Cate3 category, String name, Brand brand, String subtitle, Double price, String description, String packingList, String afterSalesService, String color, String imgPath, Integer status) {
        this.id = id;
        this.category = category;
        this.name = name;
        this.brand = brand;
        this.subtitle = subtitle;
        this.price = price;
        this.description = description;
        this.packingList = packingList;
        this.afterSalesService = afterSalesService;
        this.color = color;
        this.imgPath = imgPath;
        this.status = status;
    }
}
